import axios from '@/libs/api.request'
import config from '@/config'
const yurl = config.baseUrl.dev_y + 'v1/'

/**
 * 保存产品
 * @param {*} formData
 */
export const saveSlide = formData => {
  return axios.request({
    url: yurl + 'slideList/add',
    method: 'post',
    data: formData
  })
}

/**
 * 获取产品列表
 * @param {*} formData
 */
export const getSlideList = formData => {
  return axios.request({
    url: yurl + 'slideList',
    method: 'get',
    data: formData
  })
}
export const deleteSlide = id => {
  return axios.request({
    url: yurl + 'slideList/' + id,
    method: 'delete',
    data: {}
  })
}
